using UnityEngine;
using QFramework;

namespace ProjectMyFarmAndShe
{
	public partial class LevelItemTemplate : ViewController
	{
		private LevelItemData mData;
		
		void Start()
		{
			// Code Here
		}

		public void Init(LevelItemData data)
		{
			mData = data;
			
			Icon.sprite = ResController.Default.GetToolIconGetKey(mData.Key);
			CountText.text = mData.Count.ToString();
		}
	}
}
